package com.lagou.eduorderboot.entity;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.io.Serializable;

/**
 * 用户课程订单表(UserCourseOrder)实体类
 */

@Data
@Table(name = "user_course_order")
public class UserCourseOrder implements Serializable {
    private static final long serialVersionUID = -69516076509879730L;
    /**
    * 主键
    */
    @Id
    private Long id;
    /**
    * 订单号
    */
    private String orderNo;
    /**
    * 用户id
    */
    private Object userId;
    /**
    * 课程id，根据订单中的课程类型来选择
    */
    private Object courseId;
    /**
    * 活动课程id
    */
    private Integer activityCourseId;
    /**
    * 订单来源类型: 1 用户下单购买 2 后台添加专栏
    */
    private Object sourceType;
    /**
    * 当前状态: 0已创建 10未支付 20已支付 30已取消 40已过期 
    */
    private Object status;
    /**
    * 创建时间
    */
    private Date createTime;
    /**
    * 更新时间
    */
    private Date updateTime;
    /**
    * 是否删除
    */
    private Object isDel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Object getUserId() {
        return userId;
    }

    public void setUserId(Object userId) {
        this.userId = userId;
    }

    public Object getCourseId() {
        return courseId;
    }

    public void setCourseId(Object courseId) {
        this.courseId = courseId;
    }

    public Integer getActivityCourseId() {
        return activityCourseId;
    }

    public void setActivityCourseId(Integer activityCourseId) {
        this.activityCourseId = activityCourseId;
    }

    public Object getSourceType() {
        return sourceType;
    }

    public void setSourceType(Object sourceType) {
        this.sourceType = sourceType;
    }

    public Object getStatus() {
        return status;
    }

    public void setStatus(Object status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Object getIsDel() {
        return isDel;
    }

    public void setIsDel(Object isDel) {
        this.isDel = isDel;
    }

}